package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 授权 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "授权")
@Table ( name ="Authorize")
public class Authorize  implements Serializable {

	private static final long serialVersionUID =  8685355274800322149L;

	/**
	 * 授权ID
	 */
	@ApiModelProperty(value = "授权ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Authorize_Id" )
	private Long authorizeId;

	/**
	 * 上级ID
	 */
	@ApiModelProperty(value = "上级ID")
   	@Column(name = "Parent_Id" )
	private Long parentId;

	/**
	 * 等级
	 */
	@ApiModelProperty(value = "等级")
   	@Column(name = "Level" )
	private Long level;

	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 英文名
	 */
	@ApiModelProperty(value = "英文名")
   	@Column(name = "Name_En" )
	private String nameEn;

	/**
	 * 图标
	 */
	@ApiModelProperty(value = "图标")
   	@Column(name = "Icon" )
	private String icon;

	/**
	 * 地址
	 */
	@ApiModelProperty(value = "地址")
   	@Column(name = "Url" )
	private String url;

	/**
	 * 索引值
	 */
	@ApiModelProperty(value = "索引值")
   	@Column(name = "IndexNo" )
	private Long indexNo;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getAuthorizeId() {
		return this.authorizeId;
	}

	public void setAuthorizeId(Long authorizeId) {
		this.authorizeId = authorizeId;
	}

	public Long getParentId() {
		return this.parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getLevel() {
		return this.level;
	}

	public void setLevel(Long level) {
		this.level = level;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameEn() {
		return this.nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getIndexNo() {
		return this.indexNo;
	}

	public void setIndexNo(Long indexNo) {
		this.indexNo = indexNo;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"authorizeId='" + authorizeId + '\'' +
					"parentId='" + parentId + '\'' +
					"level='" + level + '\'' +
					"name='" + name + '\'' +
					"nameEn='" + nameEn + '\'' +
					"icon='" + icon + '\'' +
					"url='" + url + '\'' +
					"indexNo='" + indexNo + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
